package chapter9.section1;

import java.util.Objects;

/**
 * 程序9-3：实现两个对象相等性判断
 */
public class TestEquals {
    public static void main(String[] args) {
        boolean value1 = Objects.equals(new Object(), new Object());
        Object[] array1 = {1, 1.0, "hello"};
        Object[] array2 = {1, 2.0, "hello"};
        boolean value2 = Objects.deepEquals(array1, array2);
        System.out.println("value1=" + value1 + "value2=" + value2);
    }
}